<%
include("/page/tags/form_include.html"){}
%>
<form id="addUpdateForm" method="post">
   <div class="fitem">
      <#InputFormTag  name='menuName' title='菜单名称' required='true' />
      <#InputFormTag  name='namespace' title='Namespace' required='true' />
   </div>
   <#BigInputFormTag  name='menuUrl' title='链接地址' required='true' />
   <div class="fitem">
      <#WordBookFormTag  name='isDisable' title='是否禁用' code='yesOrNo' required='true' />
      <#WordBookFormTag  name='menuState' title='是否隐藏' code='yesOrNo' required='true' />
   </div>
   <#UploadFormTag  name='image' title='LOGO'  placeholder="请上传菜单LOGO"/>
   <div class="fitem">
    <#SelectFormTag  name='serverNameId' title='所在服务器' url='${basePath}/ms/menuServer/getData' required='true' valueField= 'id'
      textField= 'serverName' />
    <#InputFormTag  name='orderIndex' title='菜单序号' required='true' dataType="n"/>
   </div>

   <div class="fitem">
      <#SelectFormTag  name='systemId' title='子系统' url='${basePath}/ms/sysSystem/getSystemComBoxData' required='true' valueField= 'id'
      textField= 'text' />
      <#WordBookFormTag  name='menuType' title='菜单类型' code='menu_type' required='true' />
   </div>
   <#HideFormTag type="hidden" name="fatherMenuId" value="${parameter.parentId}"/>
   <div class="fitem ">
      <center class="fitem-footer">
         <a href="#" class="easyui-linkbutton btn btn-suc" onclick="save()">保存</a>
         <a href="#" class="easyui-linkbutton btn btn-can" onclick="closeDialog()">返回</a>
      </center>
   </div>
</form>

<script>
    $(function () {
         $('#isDisable').combobox('setValue',0);
         $('#menuState').combobox('setValue',0);
    })

   function saveAfterSuccessHandler(){
      document.getElementById('left').contentWindow.reloadData();
       document.getElementById('rightFrame').contentWindow.reload();
   }
</script>
<%
 layout("/page/tags/add_update_tag.html",{'nameSpace':'sysMenu','idField':'menuId'}){}
%>
